package com.atguigu.boot.DependsOn;


public class EventListenerBean {

    private void initialize() {
        System.out.println("EventListenerBean initializing");
        EventManager.getInstance().
                addListener(s ->
                        System.out.println("event received in EventListenerBean : " + s));
    }
}
